package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.param.entity.PrPaymentSequenceFactorTable;
import com.jrx.anytxn.param.mapper.base.PrPaymentSequenceFactorTableMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname ExtPaymentSequenceFactorTableMapper
 * @Description yf
 * @Date 2019/6/13 0013 下午 23:21
 * @Created by Administrator
 */
public interface ExtPaymentSequenceFactorTableMapper extends PrPaymentSequenceFactorTableMapper {

    /**
     * 根据还款顺序ID和租户ID查询相关列表
     *
     * @param paymentSequenceId 还款顺序ID
     * @param tenantId          租户ID
     * @return java.util.List<com.jrx.anytxn.param.entity.PrPaymentSequenceFactorTable>
     * @author fan.yang
     * date: 2019/10/14 0014 下午 16:21
     */
    List<PrPaymentSequenceFactorTable> selectByPaymentSequenceIdAndTenId(@Param("paymentSequenceId") String paymentSequenceId, @Param("tenantId") String tenantId);

    /**
     * 根据还款顺序ID和租户ID删除
     *
     * @param paymentSequenceId 还款顺序ID
     * @param tenantId          租户ID
     * @return int
     * @author fan.yang
     * date: 2019/10/14 0014 下午 16:36
     */
    int deleteByPaymentSequenceIdAndTenId(@Param("paymentSequenceId") String paymentSequenceId, @Param("tenantId") String tenantId);
}
